home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / xvisrc.zip / PC386.H < prev    next >
C/C++ Source or Header  |  1992-07-28  |  2KB  |  80 lines

  1. /* Copyright (c) 1990,1991,1992 Chris and John Downey */
  2. /***
  3.  
  4. * @(#)pc386.h    2.1 (Chris & John Downey) 7/29/92
  5.  
  6. * program name:
  7.     xvi
  8. * function:
  9.     PD version of UNIX "vi" editor, with extensions.
  10. * module name:
  11.     pc386.h
  12. * module function:
  13.     Definitions for MS-DOS 386 protected mode version.
  14.  
  15.     See notes in pc386.c.
  16. * history:
  17.     STEVIE - ST Editor for VI Enthusiasts, Version 3.10
  18.     Originally by Tim Thompson (twitch!tjt)
  19.     Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
  20.     Heavily modified by Chris & John Downey
  21.  
  22. ***/
  23.  
  24. #include <conio.h>
  25. #include <disp.h>
  26. #include <int.h>
  27. #include <msmouse.h>
  28. #include <sound.h>
  29.  
  30. /*
  31.  * Screen dimensions.
  32.  */
  33. extern unsigned    Rows,
  34.         Columns;
  35.  
  36. /*
  37.  * Colour handling: default screen colours for PC's.
  38.  */
  39. #define DEF_COLOUR        7    /* white on black */
  40. #define DEF_STCOLOUR        112    /* black on white */
  41. #define DEF_SYSCOLOUR        7    /* white on black */
  42.  
  43. #define alert()            sound_beep(0x299)
  44. #define can_ins_line        FALSE
  45. #define can_del_line        FALSE
  46. #define can_scroll_area        TRUE
  47. #define can_inschar        FALSE
  48. #define cost_goto        0    /* cost of tty_goto() */
  49. #define delete_line()
  50. #define erase_display()        (disp_move(0,0),disp_eeop())
  51. #define erase_line()        disp_eeol()
  52. #define flush_output()        disp_flush()
  53. #define hidemouse()        msm_hidecursor()
  54. #define inschar(c)
  55. #define insert_line()
  56. #define invis_cursor()
  57. #define mousestatus(x,y)    msm_getstatus(x,y)
  58. #define outchar(c)        disp_putc(c)
  59. #define outstr(s)        disp_puts(s)
  60. #define scroll_down(s,e,n)    pc_scroll((s),(e),-(n))
  61. #define scroll_up(s,e,n)    pc_scroll(s,e,n)
  62. #define set_colour(n)        disp_setattr(n)
  63. #define showmouse()        msm_showcursor()
  64. #define tty_goto(r,c)        disp_move(r,c)
  65. #define tty_close()        (disp_inited && disp_close())
  66. /*
  67.  * tty_linefeed() isn't needed if can_scroll_area is TRUE.
  68.  */
  69. #define tty_linefeed()
  70. #define vis_cursor()
  71.  
  72. /*
  73.  * Declarations for routines in ibmpc_c.c & pc386.c.
  74.  */
  75. extern int            inchar P((long));
  76. extern void            pc_scroll P((unsigned, unsigned, int));
  77. extern void            tty_endv P((void));
  78. extern void            tty_open P((unsigned *, unsigned *));
  79. extern void            tty_startv P((void));
  80.